<template>
  <div>
    <el-button type="text" @click="open">点击打开 Message Box</el-button>
  </div>
</template>

<script>
import { showModal } from "@/utils/element"
export default {
  name: "",
  data() {
    return {}
  },
  methods: {
    async open() {
      try {
        const res = await showModal()
        console.log(res)
      } catch (err) {
        console.log(err)
      }
    },
  },
}
</script>
<style lang="less" scoped></style>
